package com.jack.vipmis.vip.member.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

import org.springframework.format.annotation.DateTimeFormat;

import com.alibaba.fastjson.annotation.JSONField;
import com.jack.vipmis.common.entity.BaseEntity;

/**
 * 会员信息
 * 
 * @author JackLiang
 * @date 2014-7-3
 * @version 1.0
 */
@Entity
@Table(name = "userInfo")
public class Member extends BaseEntity<Long> {

	@Column
	private String	firstName;

	@Column
	private Integer	sex;

	@Column
	private Long	phone;

	@Column
	private String	pwd;

	@Column
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JSONField(serialize = false)
	private Date	createDate	= new Date();	// 创建时间

	@Transient
	@JSONField(serialize = false)
	private String	remark;

	@Transient
	@JSONField(serialize = false)
	private Boolean	locked;

	// setter getter
	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public Long getPhone() {
		return phone;
	}

	public void setPhone(Long phone) {
		this.phone = phone;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Boolean getLocked() {
		return locked;
	}

	public void setLocked(Boolean locked) {
		this.locked = locked;
	}

}
